package BaseClass;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.border.EmptyBorder;

import model.entity.Bill;
import model.entity.Company;
import model.entity.Medicine;
import table.GenericTableModel;
import view.main.Main;

public abstract class BaseSubFrame<E extends BaseEntity> extends JFrame {

	public final String a = "add";
	public final String u = "update";
	public final String d = "delete";
	public List<E> Objects = new ArrayList<E>();
	public JTable table;
	public GenericTableModel<E> JTableModel;
	public JPanel contentPane;
	public Vector<E> comVs = new Vector<E>();

	public BaseSubFrame() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		pack();
	}

	public abstract void Initialize() throws ClassNotFoundException, SQLException;

}
